package com.xian.cloud;

import ch.qos.logback.classic.net.SocketAppender;
import com.xian.cloud.listener.EurekaServerStateChangeListener;
import com.xian.cloud.resoure.CloudConfigSupportConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
import org.springframework.context.annotation.Import;

/**
 * @Author: xlr
 * @Date: Created in 下午10:28 2018/10/11
 */
@Import(EurekaServerStateChangeListener.class)
@EnableEurekaServer
@SpringBootApplication
@EnableAutoConfiguration
public class EurekaApplication {


    public static void main(String[] args) {
        new SpringApplicationBuilder(EurekaApplication.class).web(true).run(args);
    }
}
